/* 
 * 发现板块获取数据相关
*/
import { axios } from "@/request/request";

/**
 * 获取发现模块列表页
 * @param {*} data
 * @returns {object}
 */

export const getFindList = (params) => {
  return axios({
    url: `/getFindList?username=${params.username}&limit=${params.limit}&page=${params.page}&keywords=${params.keywords}&ismine=${params.ismine}&findType=${params.findType}&loadTime=${params.loadTime}`,
    method: "get",
  });
};


/**
 * 获取文章详情
 * @param {*} data
 * @returns {object}
 */
 export const getArticleDetail = data => {
  return axios({
    url: "/getArticleDetail",
    method: "post",
    data,
  });
};

export const getVideoDetail = (params) => {
  return axios({
    url: `/getVideoDetailInfo?id=${params.id}`,
    method: "get",
    data: params,
  });
};
